/**
 * 
 */
package it.uniroma3.engine.paramer;

import java.io.File;

import org.apache.lucene.analysis.PerFieldAnalyzerWrapper;
import org.apache.lucene.analysis.SimpleAnalyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.store.RAMDirectory;
import org.apache.lucene.util.Version;

/**
 * @author Accosta Augusto
 * @author Lopez Elisabetta
 *
 */
public class EngineParameter {

	private static String LUCENE_VERSION = "LUCENE_30";
	
	public static StandardAnalyzer STD_ANALYZER = new StandardAnalyzer(getVersion());

	public static SimpleAnalyzer SIM_ANALYZER = new SimpleAnalyzer();
	
	public static PerFieldAnalyzerWrapper ANALYZER = new PerFieldAnalyzerWrapper(STD_ANALYZER);

	public static File INDEX = new File("Index");
	
	public static File FILE_OUTPUT_DIRECTORY = new File("Tests/Fabio/Look");
	
	public static RAMDirectory RAM_DIRECTORY = new RAMDirectory();

	public static String CONTENTS_FULLNAME = "fullname";
	
	public static String CONTENTS_SPELLED_OUT_FULLNAME = "spelledout";
	
	public static int NUMBER_OF_EXTRACTED_QUERYPARSER_CANDIDATES = 10;
	
	public static int NUMBER_OF_EXTRACTED_FUZZY_CANDIDATES = 5;

	public static int NUMBER_OF_EXTRACTED_WILDCARD_CANDIDATES = 5;
	
	public static float OUTPUT_THRESHOLD = 1.2f;
	
	public static Version getVersion() {
		return Version.valueOf(LUCENE_VERSION);
	}
	
}
